﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Default/Views/Shared/Member.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Fashion.Models.UserCoupon>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewCoupon
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ViewCoupon</h2>

    <table>
        <tr>
            <th>
                CouponID
            </th>
            <th>
                Description
            </th>
            <th>
                Quantity
            </th>
            <th>
                Start Date
            </th>
            <th>
                Expired Date
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.CouponID %>
            </td>
            <td>
                <%: item.description %>
            </td>
            <td>
                <%: item.Quantity %>
            </td>
            <td>
                <%: String.Format("{0:dd/MM/yyyy}", item.startDate)%>
            </td>
            <td>
                <%: String.Format("{0:dd/MM/yyyy}", item.expiredDate)%>
            </td>
        </tr>
 
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Back to Dashboard", "Index") %>
    </p>

</asp:Content>

